Instant Ember.js Application Development How-to by 2013

Instant Ember.js Application Development How-to by 2013

Author:2013
Language: eng
Format: epub
Publisher: Packt Publishing


Refresh the page to load the new changes, then recreate our comedy movie with the following code:

var comedyMovie = MovieTracker.Movie.create({ title: 'A Comedy Movie', rating: 5 });

If we were to change the title with something like:

comedyMovie.set('title', 'Comedy Movie 2');

Then Title changed! would be displayed as an output to the console.

We added an observer to the title, so whenever the title changes, the corresponding function (titleChanged) is triggered.

Creating an Ember controller (Simple)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.